import { Controller, Post, Body } from '@nestjs/common';
import { AuthingService } from './authing.service';

@Controller('authing')
export class AuthingController {
  constructor(private readonly authingService: AuthingService) {}
  @Post('getToken')
  async getToken(@Body() data: { code: string }) {
    return this.authingService.getToken(data.code);
  }

}
